package com.bei_en.teacher.admin.persistence;

import java.util.List;
import com.bei_en.teacher.admin.model.BaseBean;

public interface BaseDao<T extends BaseBean, PK extends java.io.Serializable> {

	void insert(T model);

	int delete(PK modelPK);

	T findById(PK modelPK);

	void update(T model);

	void updateSelective(T model);

	int countAll();

	List<T> findAll();

	List<PK> findAllIds();
	List<PK> findAllId(T model);
}
